<template>
	<view class="box">
			<u-subsection :list="list" :current="current" activeColor="#FFCB71" @change="sectionChange"></u-subsection>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: ['我点赞的', '我评论的'],
				current:0
			}
		},
		onLoad(){
			this.upData()
		},
		methods: {
			upData(){
				this.$myRuquest('home/user/user_trends_list', {type:this.current+1}).then(res=>{
					
				})
			},
			sectionChange(index) {
							this.current = index;
							this.upData()
					}
		}
	}
</script>

<style lang="scss">
	.box{
		padding: 20rpx;
	}
</style>
